<?php

namespace JLPay\Models\Openmerch\Change;

/**
 * 商户经营信息DTO
 */
class MerchBusinessInfoDto
{
    protected ?string $merchNo = null;
    protected ?string $merchShortname = null;
    protected ?string $unionpayName = null;
    protected ?string $wechatName = null;
    protected ?string $alipayName = null;
    protected ?string $addressCode = null;
    protected ?string $addressDetail = null;
    protected ?string $mccCode = null;
    protected ?string $csHotline = null;
    protected ?string $doorPic = null;
    protected ?string $cashierPic = null;
    protected ?string $indoorPic = null;

    /**
     * 设置商户号
     *
     * @param string $merchNo
     * @return self
     */
    public function setMerchNo(string $merchNo): self
    {
        $this->merchNo = $merchNo;
        return $this;
    }

    /**
     * 转换为数组
     *
     * @return array
     */
    public function toArray(): array
    {
        return [
            'merch_no' => $this->merchNo,
            'merch_shortname' => $this->merchShortname,
            'unionpay_name' => $this->unionpayName,
            'wechat_name' => $this->wechatName,
            'alipay_name' => $this->alipayName,
            'address_code' => $this->addressCode,
            'address_detail' => $this->addressDetail,
            'mcc_code' => $this->mccCode,
            'cs_hotline' => $this->csHotline,
            'door_pic' => $this->doorPic,
            'cashier_pic' => $this->cashierPic,
            'indoor_pic' => $this->indoorPic
        ];
    }
} 